package exception;

class lanPingException extends Exception{
	
	lanPingException(String message){
		super(message);
	}
}

class Teacher {

	private String name;
	private Computer computer;
	Teacher(String name){
		this.name = name;
		computer = new Computer();
	}
	public void prelect(){
		computer.run();
		System.out.println("开讲啦");
	}
	
}

class Computer{
	
	public void run(){
		System.out.println("电脑运行！");
	}
	public void reset(){
		System.out.println("电脑重启！");
	}
}

public class ExceptionTest{
	public static void main(String[] args) {
		Teacher t = new Teacher("李大帅");
		t.prelect();
	}
}
